package com.example.demo.mapper;

import com.example.demo.model.Problem;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * Created by xiebang
 * Description
 * User:小谢
 * Date:2022-09-19
 * Time:22:02
 */
//对problem的增删改查
@Mapper
public interface ProblemMapper {
//    新增题目
    public int insert(Problem problem);
//    删除题目
    public int delete(Integer id);
//    查询题目列表
    public List<Problem> selectAll();
//    查询题目详情
    public Problem selectOne(int id);
}
